const path = require('path')

function resolve(dir) {
    return path.join(__dirname, dir)
}
module.exports = {
    publicPath: './',
    assetsDir: './',
    productionSourceMap: false,
    chainWebpack: config => {
        config.resolve.alias
            .set('@', resolve('src'))
    },
    css: {
        loaderOptions: {
            stylus: {
                'resolve url': true,
                // 自定义主题场景
                import: [path.resolve(__dirname, './src/assets/css/base.styl')]
            }
        }
    }
}
